$bgPic: "../images/bg.jpg";
$fontColor: #333 !default;

@mixin resest {
  padding: 0;
  margin: 0 auto;
}
@mixin transition($type:all, $time:0.3s) {
  transition: $type $time;
}

html,
body {
  height: 100%;
  width: 100%;
  @include resest;
}
body {
  background: {
    color: "#B0BFD3";
    image: url($bgPic);
    repeat: no-repeat;
    size: 100% 100%;
  }
}
.myHeader {
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  background-color: #fff;
}
.navIcon {
  display: none;
  padding-top: 25px;
  padding-left: 20px;
  font-size: 30px;
  cursor: pointer;
}
.myNav {
  ul {
    @include resest;
    list-style: none;
    font-size: 16px;
  }
  a {
    text-decoration: none;
    color: $fontColor;
    i {
      margin-left: 5px;
    }
  }
  > ul {
    > li {
      display: inline-block;
      line-height: 80px;
      height: 70px;
      padding: 0 20px;
      position: relative;
      border-bottom: 0px solid #2FB9CB;
      @include transition;
      &:hover,
      &.on {
        background-color: #eee;
        border-bottom-width: 10px;
      }
    }
  }
  .icon-caret-left {
    float: right;
    margin-right: 10px;
    margin-top: 6px;
  }
  .icon-caret-up,
  .icon-caret-left {
    &:before {
      transform: rotate(0deg);
      @include transition;
    }
  }
  li {
    &:hover {
      .icon-caret-up::before {
        transform: rotate(180deg);
      }
      .secondNav {
        display: block;
      }
    }
  }
}
.subNav {
  display: none;
  width: 150px;
  position: absolute;
  left: 0;
  background-color: #fff;
  box-shadow: 1px 1px 4px 2px #ccc;
  z-index: 1;
  @include transition;
  li {
    line-height: 30px;
    padding-left: 20px;
    border-bottom: #ccc solid 1px;
  }
}
.secondNav {
  > li {
    position: relative;
  }
  li {
    &:hover {
      .icon-caret-left::before {
        transform: rotate(180deg);
      }
      .threeNav {
        display: block;
      }
    }
  }
}
.threeNav {
  left: 150px;
  top: 0;
}

@media  screen and (max-width: 700px) {
  .navIcon {
    display: block;
  }
  .myNav {
    > ul {
      display: none;
      border-top: #ccc solid 1px;
      &.open {
        display: block;
      }
    }
    ul {
      li {
        background-color: #fff;
        height: 40px;
        line-height: 50px;
        display: block;
      }
    }
    .icon-caret-left {
      margin-top: 13px;
    }
  }
}

// 产品
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1190px;
  width: 100%;
  margin: 20px auto;
  border: #2FB9CB solid 5px;
  background-color: rgba(255, 255, 255, .5);
  overflow: hidden;
  .item {
    width: 186px;
    height: 300px;
    text-align: center;
    border: #ccc solid 1px;
    background-color: #fff;
    margin: 5px;
    @media screen and (max-width: 1200px) {
      width: 18.8%;
    }
    @media screen and (max-width: 1050px) {
      width: 23.5%;
    }
    @media screen and (max-width: 850px) {
      width: 31.5%;
    }
    @media screen and (max-width: 650px) {
      width: 47%;
    }
    @media screen and (max-width: 450px) {
      width: 100%;
    }
  }
}
